﻿using System.Collections.Generic;
using Twins.Classes.HanlderRegistry;
using Twins.Interface;
using Twins.Interface.IProcesser;

namespace Twins.Classes.Processer
{
    public class ProcesserCSharpExpression:  IProcesser
    {
        public IEnumerable<ILineCode> DoSomethingWith(object сSharpExpression)
        {
            var handler = CSharpExpressionHanlderRegistry.Get(сSharpExpression);
            if (handler != null)
                return handler.DoFor(сSharpExpression);
            return null;
        }
    }
}